# 基础镜像
FROM nginx:1.21.6
# author
MAINTAINER flightultimate

ARG ENV_NAME
ENV EN=${ENV_NAME}

# 挂载目录
VOLUME /home/fu
# 创建目录
RUN mkdir -p /home/fu
# 复制jar文件到路径
ADD ./dist /home/fu/
COPY ./config/nginx-${EN}.conf /etc/nginx/nginx.conf

EXPOSE 80

